﻿angular.module('Caltech').directive('pageHeader', function () {
    'use strict';

    return {
        restrict: 'A',
        replace: true,
        scope: true,
        link: function (scope, element, attrs) {
            var title = attrs['pageHeader'].toUpperCase();
            scope.$root.title = title;
            scope.hiddenPrint = attrs['hiddenPrint'] ? 'hidden-print' : '';
        }
    }
});
